<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>
<style>
		html,body{
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
	}
.demo{
	width: 100%;
	height: 100%;
}
</style>
<body>
	<button onclick="next()">click</button>
</body>
<script>
function next(){
		window.parent.subject.next('demo', '111')
	}
</script>

</html>